package com.ruoyi.funding.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 资金拨款记录历史对象 funding_allocation_copy
 * 
 * @author gw
 * @date 2025-01-15
 */
public class FundingAllocationCopy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录主键 */
    private Long historyId;

    /** 拨款记录id */
    @Excel(name = "拨款记录id")
    private Long allocationId;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private String historyType;

    /** 科研经费id */
    @Excel(name = "科研经费id")
    private Long fundingId;

    /** 资金来源id */
    @Excel(name = "资金来源id")
    private Long sourceId;

    /** 拨款金额 */
    @Excel(name = "拨款金额")
    private BigDecimal allocationAmount;

    /** 拨款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拨款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date allocationDate;

    /** 用途描述 */
    @Excel(name = "用途描述")
    private String purpose;

    /** 拨款文件 */
    @Excel(name = "拨款文件")
    private String files;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 删除标记（0-未删除（默认），1-已删除） */
    private Integer delFlag;

    /** 版本号 */
    @Excel(name = "版本号")
    private Integer version;

    /** 实例id */
    @Excel(name = "实例id")
    private Long flowInstantId;

    /** 状态（0-未提交，1-打回，2-审核中，3-已完成 */
    @Excel(name = "状态", readConverterExp = "状态（0-未提交，1-打回，2-审核中，3-已完成")
    private Long status;

    public void setHistoryId(Long historyId) 
    {
        this.historyId = historyId;
    }

    public Long getHistoryId() 
    {
        return historyId;
    }
    public void setAllocationId(Long allocationId) 
    {
        this.allocationId = allocationId;
    }

    public Long getAllocationId() 
    {
        return allocationId;
    }
    public void setHistoryType(String historyType) 
    {
        this.historyType = historyType;
    }

    public String getHistoryType() 
    {
        return historyType;
    }
    public void setFundingId(Long fundingId) 
    {
        this.fundingId = fundingId;
    }

    public Long getFundingId() 
    {
        return fundingId;
    }
    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }
    public void setAllocationAmount(BigDecimal allocationAmount) 
    {
        this.allocationAmount = allocationAmount;
    }

    public BigDecimal getAllocationAmount() 
    {
        return allocationAmount;
    }
    public void setAllocationDate(Date allocationDate) 
    {
        this.allocationDate = allocationDate;
    }

    public Date getAllocationDate() 
    {
        return allocationDate;
    }
    public void setPurpose(String purpose) 
    {
        this.purpose = purpose;
    }

    public String getPurpose() 
    {
        return purpose;
    }
    public void setFiles(String files) 
    {
        this.files = files;
    }

    public String getFiles() 
    {
        return files;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }
    public void setFlowInstantId(Long flowInstantId) 
    {
        this.flowInstantId = flowInstantId;
    }

    public Long getFlowInstantId() 
    {
        return flowInstantId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("historyId", getHistoryId())
            .append("allocationId", getAllocationId())
            .append("historyType", getHistoryType())
            .append("fundingId", getFundingId())
            .append("sourceId", getSourceId())
            .append("allocationAmount", getAllocationAmount())
            .append("allocationDate", getAllocationDate())
            .append("purpose", getPurpose())
            .append("files", getFiles())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .append("flowInstantId", getFlowInstantId())
            .append("status", getStatus())
            .toString();
    }
}
